chore: cleaning + major versions upgrade #147
Conversation
|
Finished and ready to be tested ! 🎉 With this PR, we are up to date! We are only one version behind Electron and Vite. I tested this PR with many of my apps without any problem. There is one small irony: I tried every other tutorial on the internet, and I don't understand why it doesn't mock My suggestion is to migrate to Post scriptum: Happy holidays to everyone! 🎊 |
|
Hold on to that, I found an error. |
|
Fixed! I didn't pay enough attention to the Electron ESM documentation. preload.js wasn't preloading. I'm developing all my apps with the "dev-main" requirement, so I noticed this issue in another app where I'm heavily using Livewire events. |
|
I missed the I don't know why, but I cannot remove this directory from the excluded ones in PhpStorm. I also wonder if I'm the only one facing this issue. If not, we should probably rename this directory. Anyway, I confirm that I can still build and use my app as before. |
|
There are some conflicts here which need to be resolved since I've merged #149. It seems to be mostly around file names.... do we need the Could you take a look when you get chance? |
|
Yes, I can. Can you merge #148 first? I will have a conflict with it as well. This PR modifies all files, so the more pull requests you merge beforehand, the easier it will be to resolve conflicts at once. |
…int, electron-chromedriver, prettier)
+ get-port v5 to v7 + cleaned some imports
+ update electron context menu
+ update electron-store
+ update deps + cleaning unused imports + more ESM conversion
0ab24c9 to
e8fc6fa
Compare
|
Rebased on main. The minimum required node version is 20.
Yes we have to. It's explained here and here |
|
That failing to run the plugin test suite concerns me... |
|
I was planning to look into that after this one is merged. I don't think I can make it work in I can explore the |
|
Obviously, I don't give up on the testing suite. As you have seen with my previous PR, I think it's important to have a solid one. It's just that with I really think we have a good chance with From https://vitest.dev:
|
|
Cool! 🎉 We'll find the gremlins before tagging. I'm going to pass all my apps to require "dev-main" I tried the That would be included in node23 by the way. Also this mode broke PHPStorm tests. I'm sure it's just a matter of configuring the experimental mode but it's better for contributors if it just work out of the box. |
|
electron-vite has tagged 3.0-beta, which supports Vite v6 & Electron <= 34 https://github.com/alex8088/electron-vite/releases/tag/v3.0.0-beta.0 |




Summary of changes
vuedependenciesdist/from previous plugin builds (added rimraf before building plugin)window.tsnpm outdated:vitev4 to v5typescriptv4 to v5stylelintv14 to v16prettierv2 to v3eslintv8 to v9electron-builderv24 to v25electron-chromedriverv31 to v32electron-context-menuv3 to v4get-portv5 to v7electronv31 to v32Every commit is checked with (
native:serveandnative:build)get-port,electron,electron-storeandelectron-context-menu84f86e1 bb72311 df6fcbfUpgrades to the last version of
electronandviteblocked bymenubar: chore(deps): update to electron 34.x.x max-mapper/menubar#486electron-vite: Vite 6 support alex8088/electron-vite#673About the ESM upgrade:
More and more packages becomes ESM only. Electron supports ESM since v28. Here is some links to read for a better understanding: